@if (ViewData.ModelState.Any(x => x.Value.Errors.Any())) 
{ 
    <div class="alert  alert-danger" > 
      <a class="close" data-dismiss="alert">&times;</a> 
      @Html.ValidationSummary()
   </div>
}
